package cliente.conta;

import java.awt.event.ActionEvent;
import java.beans.PropertyChangeListener;

import javax.swing.AbstractAction;
import javax.swing.Action;

public class ExecutaVisualizarConta extends AbstractAction {
	
	private VisualizarConta visualizarConta;

	/**
	 * 
	 */
	private static final long serialVersionUID = 3131255827005112731L;

	public ExecutaVisualizarConta(VisualizarConta visualizarConta) {
		setVisualizarConta(visualizarConta);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals("fecha")){
			getVisualizarConta().getTfVisualizarConta().dispose();
		}
	}

	public void setVisualizarConta(VisualizarConta visualizarConta) {
		this.visualizarConta = visualizarConta;
	}

	public VisualizarConta getVisualizarConta() {
		return visualizarConta;
	}

	
}
